# 你刚找到了一个更大的餐桌，可容纳更多的嘉宾。请想想你还想邀请哪三位嘉宾。
# 以完成练习3-4或练习3-5时编写的程序为基础，在程序末尾添加一条print语句，指出你找到了一个更大的餐桌。
# 使用insert() 将一位新嘉宾添加到名单开头。
# 使用insert() 将另一位新嘉宾添加到名单中间。
# 使用append() 将最后一位新嘉宾添加到名单末尾。
# 打印一系列消息，向名单中的每位嘉宾发出邀请。

friends = ["Albert Einstein", "Leonhard Euler", "Archimedes"]
print(f"Dear {friends[0]}, I want to have a dinner with you.")
print(f"Dear {friends[1]}, I want to have a dinner with you.")
print(f"Dear {friends[2]}, I want to have a dinner with you.")

print("\nHey guys, I find a larger table, and we can invite more friends.")

friends.insert(0, "Euclid")
friends.insert(2, "Gauss")
friends.append("Joseph-Louis Lagrange")

print(f"\nDear {friends[0]}, I want to have a dinner with you.")
print(f"Dear {friends[1]}, I want to have a dinner with you.")
print(f"Dear {friends[2]}, I want to have a dinner with you.")
print(f"Dear {friends[3]}, I want to have a dinner with you.")
print(f"Dear {friends[4]}, I want to have a dinner with you.")
print(f"Dear {friends[5]}, I want to have a dinner with you.")
